package org.grow.secure.dao;

import org.grow.secure.entity.LeaveEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @Author: nick
 * @Date: 21-7-19
 */
@Repository
public interface LeaveDao
        extends JpaRepository<LeaveEntity,Integer> {

    LeaveEntity findByLeaveId(Integer id);
    LeaveEntity findByLeaveIdAndApplier(Integer id,String applier);
}
